 
 <script>
var bLectoraConectadaLogin=false;
</script>

<?php
if(isset($_GET['Med'])!=NULL)
{
    echo "<script> bLectoraConectadaLogin=true;</script>";
    
}else{  
}

session_start();

if(isset($_GET['Act'])==1){
   echo "<meta  content='0; URL=Login.php'; http-equiv='REFRESH' />";
} 
require_once('metodosGlobales.php');
require_once('CreateUser/jqueryslide.php');
require_once('CreateUser/scripts.php');
require_once('Login/ModLogin.php');
require_once('Login/ScriptLogin.php');

?>   

<link type='image/x-icon' rel="icon" href="images/LogoNoTitle.ico" />
<meta http-equiv="REFRESH" content="30;URL=http://localhost/hs/Login.php" /> 

<!--<meta http-equiv="REFRESH" content="4;URL=http://healthsolutions.com.ar/Login.php" /> -->

<link REL=StyleSheet HREF="Estilos.css" type="text/css" />
   <script type="text/javascript" src="jquery/js/jquery-1.4.4.min.js"></script>
   <script type="text/javascript" src="jquery/js/jquery-ui-1.8.7.custom.min.js"></script>
   
<script type="text/javascript" src="Login/dialog_box.js"></script>
<link rel="stylesheet" type="text/css" href="Login/dialog_box.css" />

<script src="Funciones.js"></script>

    <link rel="stylesheet" type="text/css" media="screen" href="jqSuitePHP_4_1_2_2/themes/redmond/jquery-ui-1.8.2.custom.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="jqSuitePHP_4_1_2_2/themes/ui.jqgrid.css" />
    <link rel="stylesheet" type="text/css" media="screen" href="jqSuitePHP_4_1_2_2/themes/ui.multiselect.css" />
    <style type="text">
        html, body {
        margin: 0;			/* Remove body margin/padding */
    	padding: 0;
        overflow: hidden;	/* Remove scroll bars on browser window */
        font-size: 75%;
        }
    </style>

<script>
$(function() {
	$( "button, input:submit,input:file, input:button, input:reset", ".demo" ).button();
    });
</script>


<body  class="backgr" onload="fncLogin();">
    <div  id="slide" align="center"  style="width:900px; left:20%; position: absolute;top:0; display: none; z-index: 1;">
        <?php
            require_once('CreateUser/ModRules.php');
        ?>
    </div>
<div id="divcontainer" style="width:400px; position:absolute;z-index: 1; vertical-align: middle;" align="center" >  
      <?    if(isset($_GET['Med'])!=null)
         { require_once('Login/dialog_box.php');
          }
         ?>
        
</div>

<table width="100%" >
    <tr>
        <td width="100%">
            <table width="100%"  bgcolor=""  >
                <tr>
                    <td width="100%">
                        <table width="4" align="right">
                            <tr>                                
                                <td width="" align="right">
                                    <a href="http://www.healthsolutions.com.ar" style="text-decoration: none;"  target="_blank" ><img border="0" title="About us"  align="right" src="iconImage/about.png" width="40px" height="40px" /></a>
                                </td>
                                 <td width="" align="right">
                                    <a id="clicky" ><img title="Terminos y Condiciones" align="right" src="iconImage/exclama1.png" width="35px" height="35px" /></a>
                                </td> 
                                <td width="1%">
                                </td> 
                            </tr>

                        </table>
                    </td>
                </tr>
                  <tr>
                    <td class="opaco" width="4%" height="5px" style="border-style:inherit; background-image: url(images/Fondos/ft1.png); border-color: F3CBD0;" >
                    </td>
                </tr>
            </table>
        </td>
    </tr>
</table>

<form method="post"  style="font-family: Tahoma, serif; font-size: x-small;" class="labels">
<div id="LoginBox">
    
<table align="center" width="650"  cellpadding="0" cellspacing="0" style="border-color: gray;"  >
    <tr>
        <td style="height: 200px;" width="100%" align="center">
        </td>
    </tr>
    <tr>
        <td align="center" width="100%" bgcolor="EFA2FF">
            <table width="100%">
                <tr>
                    <td align="center">
                        <a style="font-family: Lucida Sans Unicode ;color: #800040;"> 
            
                             HCDWeb - Historia Cl&iacute;nica Digital - Reg&iacute;strese </a>
                        </td>
                </tr>
            </table> 
      
        </td>
    </tr>
    <tr>
        <td class="loginBox" width="100%">
            <table width="100%" align="center">
                <tr>
                    <td  width="35%"  >
                        <img   src="images\LogoNoTitle.png" alt="imagen" align="center"/>
                        
                    </td>
                    
                    <td width="65%">
                        <table width="100%" align="center">
                            <tr >
                                <td width="100%">
                                    <table width="100%"  align="center">        
                                        <tr>       
                                            <td width="10%">
                                            </td>
                                            <td  bgcolor="pink" width="80%" align="center">
                                                <table  width="100%" align="center" >
                                                    <tr>
                                                        <td height="8px">
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td  align="right" width="50%" class="labels" style="color:Blue; font-size:10px;"> <b>Usuario:</b> </td> 
                                                        <td align="center" width="50%">
                                                             <input align="center"  type="text" name="User"  class="labels"/>
                                                         </td>            
                                                    </tr>
                                                    <tr>
                                                        <td  align="right" width="50%" class="labels" style="color:Blue; font-size:10px;"> <b>Contrase&ntilde;a: </b> </td> 
                                                        <td align="center" width="50%"> 
                                                            <input  align="center" type="password" name="Pass" class="labels"/>
                                                        </td>
                                                    </tr>
                                                    <tr>
                                                        <td  align="right" width="50%" class="labels" style="color:Blue; font-size:10px;"> <b>PIN: </b> </td> 
                                                        <td align="center" width="50%"> 
                                                       <!--     <input  align="center" id="idPinL" type="password" name="namePINPASS" value="" class="labels"/>-->
                                                            <input  align="center" style="width: 50px;" id="idesc" type="button" name="nameBut"  value="ESCRIBIR" onclick="EscribirDatosLogin();" class="labels"/> 
                                                        <input  align="center" style="width: 50px;" id="idesc" type="button" name="nameBut" value="LEER" onclick="LeerDatoTarjetaLogin();" class="labels"/>
                                                        
                                                        </td>
                                                    </tr>                                                      
                                                   <tr>
                                                        <td height="8px">
                                                        </td>
                                                    </tr>       
                                                  
                                                </table>
                                            </td>
                                            <td width="10%">
                                            </td>
                                        </tr>
                                    </table>
                                    <table width="100%">
                                        <tr>
                                            <td width="10%">
                                            </td>
                                            <td width="80%">
                                                <table width="100%">
                                                    <tr>
                                                        <td class="labels" width="50%" style="height: 20px;" align="right">
                                                           <b> Consultorio: </b>
                                                        </td>
                                                        <td class="labels" width="50%" style="height: 20px;" align="center">
                                                             <b>   <?PHP if( @globalObtenerConsultorio($nombreConsultorio,$idConsultorio,
                                                             $DireccionConsultorio,$LocalidadConsultorio,$TelefonoConsultorio) == TRUE) echo 
                                                             $nombreConsultorio; else echo 'Error en archivo de configuracion'  ?>
                                                             </b>
                                                        </td>                     
                                                    </tr>
                                                </table>
                                            </td>

                                            <td width="10%">
                                            </td>                                                  
                                        </tr>
                                    
                                    </table>
                                    <table width="100%">
                                        <tr>
                                            <td style="height: 4px;"></td>
                                        </tr>
                                        <tr> 
                                            <td width="100%">
                                                <table width="100%">
                                                    <tr>
                                                        <td width="5%">
                                                        </td>
                                                        <td align="center">
                                                            <input type="submit"  name="nameLoguearUsuarioHCD" style="background-color: Pink; color:Maroon; width:145px" value="Ingresar" > 
                                                        </td>        
                                                        <td align="center">
                                                            <input type="button" onclick="dialogo();" name="nameRecuperarContraHCD" style="background-color: Pink; color:Maroon; width:145px;" value="Recuperar Contrase&ntilde;a" > 
                                                        </td>   
                                                        <td width="5%">
                                                        </td>    
                                                    </tr>
                                                    
                                                </table>
                                            
                                            </td>       
 
                                        </tr> 
                                    
                                    </table>
                                </td>
                            </tr>

      <!--  
        <tr>
        <td class="labels" width="50%" align="right">Consultorio/cl&iacute;nica: &nbsp;&nbsp;&nbsp;&nbsp;</td>
        <td class="labels" style="height: 20px;" align="center">
        <select style="width:150px " name="selectConsultorios">        
            <?PHP traerConsultorios();?>
            </select>
            
            
            
        </td>
        </tr>
        -->
                        </table>
                    </td>
                </tr>
            </table>
    	 </td>
    </tr>
</table>
</div>

 </form>
   
</body>